import request from '@/utils/request'

function formatRequestUri(name) {
  return 'flow/node/form/power/' + name
}

export function Sync(data) {
  return request({
    url: formatRequestUri('Sync'),
    method: 'post',
    data
  })
}

export function Gets(nodeId) {
  return request({
    url: formatRequestUri('Gets'),
    method: 'get',
    params: {
      nodeId
    }
  })
}

